package best.driver.android.View;

import android.content.Context;
import android.widget.EditText;
import best.driver.android.R;

public class BestEditTextDialog extends BestAlertDialogBase {

    public BestEditTextDialog(Context context) {
        this(context, null);
    }

    public BestEditTextDialog(Context context, BestAlertDialogOnClickListener onClickListener) {
        super(context, R.layout.alert_dialog_edit_text, onClickListener);
    }

    public String getContent() {
        return ((EditText)viewContent).getText().toString();
    }

    public void show(String title, String hint) {
        setTitle(title);
        ((EditText)viewContent).setHint(hint);
        show();
    }
}
